<header class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button data-target=".navbar-collapse" data-toggle="collapse" class="navbar-toggle" type="button">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <?php
            //$this->db->select('name');
            $query = $this->db->get('company');
            ?>
             <a href="<?php echo site_url(); ?>test1/" class="navbar-brand"><?php foreach ($query->result() as $row)
                        {
                           echo $row->name;
                        }  ?></a>
           <!-- <a href="<?php echo site_url(); ?>test1/" class="navbar-brand">CHIT-Manager</a> -->
        </div>
        <nav class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li><a href="<?php echo site_url(); ?>test1/">Home</a></li>
                <li><a target="_blank" href="https://github.com/anvoz/CodeIgniter-Skeleton"></a></li>
            </ul>
          
            <ul class="nav navbar-nav navbar-right">
                <li><a href="<?php echo site_url('addons'); ?>"> <span class="badge"></span></a></li>
            </ul>
           <ul class="nav navbar-nav  navbar-right">
                <li><?php echo $this->load->view('content/pagelet_ion_auth_header');?></li>
            </ul> 
        </nav>
    </div>
</header>